package com.spc.car.data.domain.htgg.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.spc.car.data.domain.htgg.xml.node.ContractPublish;

import java.util.List;

/**
 * 合同公告XML数据对象
 * 数据发布列表
 * @author ACP
 */
@JacksonXmlRootElement(localName = "CONTRACT_PUBLISH_LIST")
public class ContractPublishList {

    List<ContractPublish> contractPublishes;

    /** 这里是个坑，不指定userWrapper为fasle的话会出现重复的 */
    @JacksonXmlElementWrapper(useWrapping = false)
    @JacksonXmlProperty(localName = "CONTRACT_PUBLISH")
    public List<ContractPublish> getContractPublishes() {
        return contractPublishes;
    }

    public void setContractPublishes(List<ContractPublish> contractPublishes) {
        this.contractPublishes = contractPublishes;
    }
}
